//---------------------------------------------------------------------
// <copyright file="CsdlFunctionParameter.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------

namespace Microsoft.Data.Edm.Csdl.Internal.Parsing.Ast
{
    /// <summary>
    /// Represents a CSDL function parameter.
    /// </summary>
    internal class CsdlFunctionParameter : CsdlNamedElement
    {
        private readonly CsdlTypeReference type;
        private readonly EdmFunctionParameterMode mode;

        public CsdlFunctionParameter(string name, CsdlTypeReference type, EdmFunctionParameterMode mode, CsdlDocumentation documentation, CsdlLocation location)
            : base(name, documentation, location)
        {
            this.type = type;
            this.mode = mode;
        }

        public CsdlTypeReference Type
        {
            get { return this.type; }
        }

        public EdmFunctionParameterMode Mode
        {
            get { return this.mode; }
        }
    }
}
